FROM nginx:stable-alpine
# 将本地的index.html文件复制到容器中Nginx默认的HTML目录
COPY index.html /usr/share/nginx/html/
# 默认暴露80端口
EXPOSE 80
# 容器启动时运行Nginx
CMD ["nginx", "-g", "daemon off;"] 
